Skip to content

Retry Windows persona file publication on a sharing violation - #161

Merged
joelteply merged 6 commits into
fable/one-stream-corefrom
codex/windows-persona-publish-sharing
Nov 24, 2026
Merged

joelteply merged 6 commits into
fable/one-stream-corefrom
codex/windows-persona-publish-sharing

Conversation

@joelteply

Copy link
Copy Markdown

Windows resident shutdown could finish writing a native block file and then lose the new generation when another reader briefly prevented renaming the temporary file. Retry the atomic move for up to two seconds on a Windows sharing violation. All other failures return immediately.

On the 5090 the prior executable reported native save failures on repeated shutdowns. The candidate saved both resident files in the same generation and all 65 modules acknowledged durable shutdown. The core restarted on the same candidate digest D5A3FD6F. A scratch replay reproduced the old sharing failure, published the original bytes after releasing the reader, and retained the previous file when a reader held the lock beyond the deadline.

@joelteply

Copy link
Copy Markdown
Author

Independent review of 71d7926 asked whether this retry can block active decode. The sole production block-file writer in the tested Continuum tree is driver.rs:547. Its caller chain is Submission::Suspend → suspend → preserve → write_file. Ordinary persona switches never enter it.

The two-second deadline is a ceiling. The transient-lock replay released its reader after 160 ms. The persistent-lock replay returned in 2,015 ms with the previous file intact. The entire real 65-module shutdown took 560 ms. That run did not measure the lifetime or identity of the individual handle. Codex owns follow-up AIRC card 86f4b354-ae45-454c-8a1a-d756ce11d5ce.

@joelteply
joelteply marked this pull request as ready for review November 23, 2026 23:29
@joelteply
joelteply merged commit 267a958 into fable/one-stream-core Nov 24, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant